﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminMaster.Master" AutoEventWireup="true" CodeBehind="AdminIndustryType2.aspx.cs" Inherits="TravelLink.WebApp.Admin.AdminIndustryType2" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td>
                <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="False" Text="新增">
                    <ClientSideEvents Click="function(s, e) {
	agv.AddNewRow();
}" />
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" 
    DataSourceID="lds_industrytype2" KeyFieldName="Idx" ViewStateMode="Disabled"  ClientInstanceName="agv">
    <Columns>
        <dx:GridViewDataTextColumn Caption="编号" FieldName="Idx" ReadOnly="True" 
            ShowInCustomizationForm="True" VisibleIndex="0" Width="60px">
            <editformsettings visible="False" />
<EditFormSettings Visible="False"></EditFormSettings>
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataComboBoxColumn Caption="大类" FieldName="ParentId" 
            ShowInCustomizationForm="True" VisibleIndex="1" Width="150px">
            <PropertiesComboBox DataSourceID="LinqDataSource1" TextField="Name" 
                ValueField="Idx" ValueType="System.String">
            </PropertiesComboBox>
        </dx:GridViewDataComboBoxColumn>
        <dx:GridViewDataTextColumn Caption="中文名" FieldName="Name" 
            ShowInCustomizationForm="True" VisibleIndex="2" Width="150px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn Caption="英文名" FieldName="EName" 
            ShowInCustomizationForm="True" VisibleIndex="3" Width="150px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn Caption="序号" FieldName="SortID" 
            ShowInCustomizationForm="True" VisibleIndex="4" Width="60px">
        </dx:GridViewDataTextColumn>
        <dx:GridViewCommandColumn ButtonType="Button" Caption="操作" 
            ShowInCustomizationForm="True" VisibleIndex="5">
            <editbutton text="修改" visible="True">
            </editbutton>
            <newbutton text="添加">
            </newbutton>
            <deletebutton text="删除" visible="True">
            </deletebutton>
            <cancelbutton text="取消" visible="True">
            </cancelbutton>
            <updatebutton text="保存" visible="True">
            </updatebutton>
            <clearfilterbutton visible="True">
            </clearfilterbutton>
        </dx:GridViewCommandColumn>
    </Columns>
    <settings showfilterrow="True" />

<Settings ShowFilterRow="True"></Settings>
</dx:ASPxGridView>
<asp:LinqDataSource ID="lds_industrytype2" runat="server" 
    ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EnableDelete="True" 
    EnableInsert="True" EnableUpdate="True" EnableViewState="False" 
    EntityTypeName="" OrderBy="SortID" TableName="TL_IndustryType2">
</asp:LinqDataSource>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="TravelLink.DAL.TravelLinkDBDataContext" EntityTypeName="" 
        OrderBy="SortID" TableName="TL_IndustryType1">
    </asp:LinqDataSource>
</asp:Content>
